# Ramadi Ya Mradi

OCAML=ocamlopt.opt
OCAMLFLAGS= -I +lablgtk2 -I +sdl -I +lablGL
OCAMLLD= lablgtk.cmxa bigarray.cmxa sdl.cmxa sdlloader.cmxa lablgl.cmxa lablglut.cmxa lablgtkgl.cmxa
ML= filtre_sobel.ml myConvert.ml colorList.ml sdlFunction.ml imageProcessing.ml sampling.ml objReader.ml init3d.ml interface.ml # <------- Ajoutez vos ml ici
CMX= ${ML:.ml=.cmx}
MLI= ${ML:.ml=.mli}
EXEC= ./ramani

# TOUCHEZ A RIEN
# Le makefile prends tout les .ml du dossier projet, les compile et les lance

main: ${CMX} ${MLI}
	${OCAML} ${OCAMLFLAGS} ${OCAMLLD} -o ramani ${CMX}
	${EXEC}

.SUFFIXES:.ml .cmx .mli

.ml.cmx:
	${OCAML} ${OCAMLFLAGS} ${OCAMLLD} -c $<
.ml.mli:
	${OCAML} ${OCAMLFLAGS} ${OCAMLLD} -i $< > $*.mli
clean::
	rm -f *~ *.o *.cm? *.mli
	rm -f map.bmp
	rm -f map_grid.bmp
	rm -f info.txt
	rm -f map.obj
# FIN